How to calculate viewport width based on device specification
<p>Im trying to understand how vieport width is calculated for mobile devices. I've tried it on real device and it works the same but I'll paste screenshot with emulator.</p>

<p>The question is: why the viewport width is 432px when the device width is 1080px and density is 420dpi? I undestand that the viewport metatag should set the viewport width to device actual width right? So it should be 1080px yes?</p>

<p>This might be trivial but i dont undestand from that 432px came from exactly.</p>

<p>Screenshot:
<a href="https://i.stack.imgur.com/xRL7J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xRL7J.png" alt="enter image description here"></a></p>