On page load, it looks as if the portrait and landscape classes are being assigned incorrectly. When an app is loaded with the device in landscape mode, the body is given a class of portrait and vice-versa. Creating an alert that displays the body classes on page load confirms this.
There's been some work in this area and I believe we're doing this differently now. Please reopen if this remains an issue.