All you need to do in this room is walk to the exit. The moving blocks and the pool of deadly lava do make this quite tricky though.
There are different routes you can take to the exit, but the simplest is just to walk clockwise around the outside of the room. Keep the wall immediately to your left, and walk forward whenever there’s a path. Sometimes you’ll have to wait a second for the path to appear, but DON’T PANIC! Eventually you’ll get to the exit.
If you want to find your own way through the room then spend a moment watching the white blocks. Some of them never sink into the lava, so you can stand on them safely while figuring out what to do next.