I\'m experiencing this problem on an iPhone device (iPhone 7, iOS 10, but also other iPhones too): in javascript, if I intercept the orientationchange event, inside the handler,
As far as I know screen the width/height will not change in the device after rotation. To check if the device is rotated you could read these properties
Unfortunately, this behavior is not consistent across all Android/iOS/Window devices. I think it's pretty explained in this figure .