Are the viewport in mobile phones based on the screen resolution or the mobile browser? Here are some popular mobile browser viewport sizes:
-Opera Mobile browser viewport 850px
-iPhone safari browser viewport 980px
-iPad (landscape & portrait mode) viewport 980px mobile device? -Android browser viewport 800px
-IE mobile browser viewport 320px source. But is the viewport size scaled by resolution of the
Technically, mobile devices feature two viewport sizes, the layout viewport and the visual viewport.
The layout viewport is fixed as it is based on the width and height of the screen of the physical device. Its dimensions can be accessed with the
screen.width
andscreen.height
properties in JavaScript anddevice-width
for the purpose of media queries in CSS3.The visual viewport is determined by the width and height of the browser window. Its dimensions can be accessed with the
window.innerWidth
andwindow.innerHeight
properties in JavaScript andwidth
for the purpose of media queries in CSS3.