This is a bug I stumbled on just messing with fluids. If you’re in an area where water and lava meet to form rock/stone when it forms, you get stuck in it. It lets you see through the world and several objects.
Edit: You also can’t interact with anything, but can change tools and all. You can move out of the spot eventually