I am looking for a script to detect if the screen is landscape or portrait without rotating your phone (the initial screen size if you want) in order to display an image to rotate the device if the game is landscape one (and the initial load of the page was portrait).
I've found lots of information on "orientation change" events, but nothing to detect the view on the initial load of page.