Thank you for your answer.
That’s weird… that example didn’t work on my mobile devices either.
As stated here, it seems to be a bug indeed.
That page also referred to your example.
Keep in mind that window.innerWidth and windor.InnerHeight might not be the same when changing the orientation, ex: on chrome on iOS then you have to use the outherWidth instead of inner
Sorry for digging this old topic, but it is still present!
On iphone (e.g. on my iPhone 11, iOS15) the “orientationchange” is detected, but the calculation of “this.scale.orientation === Phaser.Scale.PORTRAIT” is wrong.
If i rotate from portait to landscape, it starts my notification for “please use your device in landscape”
User have to reload the page in landscape mode, to prevent this behavior.
Tested on the official example for orientation, same result:
So, only change right now is to implement the here mentioned custom check on window.resize i belive.