Is there any way to display the H5 page horizontally in the case of the user's vertical screen, and all the content in it is also displayed horizontally, just like in the game?

when watching the js game engine, there is a situation of automatic horizontal screen and automatic vertical screen. When the mobile end develops a mobile page similar to a game (there is no need to use the game engine), the game page design is likely to be in full screen mode. If the user sets a screen lock and does not allow screen rotation, the page should be full of full screen when opened, forcing the page to rotate 90 degrees. Is there a good plan? Rotate the page 90 degrees and rotate all the elements in it?

Mar.17,2021

Correction: the following reply will report an error and, The page needs to be fullscreen in order to call screen.orientation.lock (), does not work.

=

add this sentence to js:

screen.orientation.lock('landscape');

Menu