Have you tried including the viewport meta tag, for example:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
Otherwise, you can try to create orientation-oriented CSS styles and replace them with w / javascript when the orientation changes event, but I prefer the meta tag method above.
source share