when I am changing my web page's orientation from portrait to landscape in mobile, it is displaying correctly. But again changing from landscape to portrait alignment is not correct.
I am using meta tag like this:
<meta name="viewport" content="width=device-width, maximum-scale=2.0, initial-scale=1, minimum-scale=1.0, user-scalable=yes, shrink-to-fit=no">
I have found that when applying landscape mode width is changing to width=device-height in meta tag. But again if I am turning to portrait means width is not changing to width=device-width in meta tag, it is still persists in width=device-height. how to fix this issue?