The best way to determine device orientation is to use meta tags. The viewport meta tag is used by Safari / chrome on iPhone and iPad to determine how to display a web page. Below are the properties of the viewport.
Viewport width to device width by adding the following declaration to the head of your HTML file
<meta name="viewport" content="width=device-width">
To set the initial scale to 1.0, add it to the header of your HTML file:
<meta name="viewport" content="initial-scale=1.0">
, HTML :
viewport, . . , , . , .
<meta name="apple-mobile-web-app-capable" content="yes">
yes, - ; - . , - , window.navigator.standalone .