If you join a realm server then quickly join a singleplayer server after pressing cancel it still loads the realm while keeping the location, but it also loads the super flat putting you at y:4 so you can see cave systems and other game-breaking things.
Hi there!
This looks like a duplicate of MC-74984.