Dealing with tantrums?

Brit • One and done so I'll be a FTM forever.

I made the mistake of committing to 12 weeks of gymnastics classes for my very spirited soon to be 2 year old. We’ve been to 5 classes so far and every time she throws an epic tantrum. She doesn’t act like this at home or other public places. It just seems to be an exercise in toddler patience and self-control that we’re failing epically. I assume it’s because she’s overstimulated and there are just so many things she wants to do that she won’t listen to the coach. The last couple weeks we’ve just left early because she wasn’t listening/was throwing a tantrum (most recently in the middle of a trampoline 😔).

I’ve tried taking her somewhere quiet to calm down but as soon as we go back to the class it happens again.

I dread these classes now and feel myself getting worked up in the days before. Any advice would be greatly appreciated.