I've been working on a mobile site and in order to test it, I've set up different emulators for Android and used an iPhone emulator as well. The issue I am facing is that when I call window.innerWidth upon orientation change on the iPhone, the viewport changes to 320 in portrait mode and 480 in landscape mode. However, on Android, the viewport remains the same in both landscape and portrait modes. For instance, in a resolution of 480x800, the viewport is 320 in both landscape and portrait modes. My meta tag for the viewport is:
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
Is this behavior correct?
Thanks in advance.