There is no cheat or glitch for it, but there is a movement technique that makes the level manageable.
Hold right while the compass is rotating. Doing so lets you run up the sides of the compass rather than being carried around with it, which is the difference between fighting the rotation and using it. Most failed attempts come from trying to time the rotation instead of moving with it.
It is worth being clear that this is legitimate movement, not an exploit — you are working within the physics rather than breaking them. Once the timing clicks, the level stops being the wall it first appears to be.