I am utilizing the Screen Orientation API for JavaScript and encountering a specific issue. Whenever I rotate my iPhone to landscape mode, everything appears normal until I call
screen.orientation.lock('landscape')
. At that point, the screen rotates but displays upside-down. Interestingly, this problem does not occur on Android devices. On Android, invoking screen.orientation.lock('landscape')
keeps the screen in landscape mode as intended. Any ideas on how to potentially resolve this discrepancy?