This works, and I’m speaking from experience. Nothing makes a short nap more effective at clearing cobwebs than coffee right beforehand.
If you can manage both, do this and then go for a walk for about 20 minutes before your interview. Physical activity can also help wake up your brain, and a walk shouldn’t get you sweating like heavier exercise might. Showing up for an interview sweaty isn’t a good look.