The shoe is on the other foot

The opposite is true, someone’s place or situation is changed into someone else’s place or situation.

My friend always has problems at school but now the shoe is on the other foot and I am the one who is having problems.