Pokemon ability levitate

My Flygon has the ability levitate, which gives it full immunity to all ground moves, but every time I try to battle Zenith at the infernal base, Flygon is always knocked out by a GROUND type move… I’m also stuck inside the infernal base, and can’t get out to switch Pokemon, which is also really frustrating me.

Could you tell me what pokemon fainted it using what move? You’re being too vague and it could be related to the opponent’s ability.

It’s the Excadrill. It had the ability Mold Breaker which allows it to ignore defending abilities.