Prince Kwazii and Pirate Sofia!

Prince Kwazii and Pirate Sofia is the 31st episode of Season 5.

Summary
While looking at an unusual but magical mirror in the attic, Kwazii and Sofia accidentally switch each others places and soon they start to get used to their new lives. Until, they start to struggle on their other problems and must get to the magic mirror to switch each others lives back.