renaming variable isIphone to a more generic name, because other devices have window.orientation !== null