Orientation detection is not working on iPhone

Hello.

How are you?
It’s my pleasure to ask you some questions!

Scene.scale.orientation is working on browser developer tools. But on mobile browser(e.g. Chrome and Safari), it’s treated as “undefined”.

Could you please let me know the reason and the alternative way for that?

Hope to hear more from you.
Thanks.