Detecting mobile device screen orientation when Responsive Layouts won't work

sorry for the multiple reply/deletions. but thanks for the reply. hope you got some sleep. as you know, im trying to detect if the mobile device is landscape or portrait. hype does all the rest using something like this:

i'll try to emulate your ideas. again i am combining all assets into one stand alone html file... images, javascript, etc. i am so damn close but the publisher requires that i have a orientation script. they sent this...

window.addEventListener('orientationchange', (event) =>
{ console.log("orientation is now " + event.target.screen.orientation.angle);
});

when i ask the publisher for an example, they gave me a huge phaser code example that was impossible (for me) to dissect. i just need simple syntax! my code request seems like something that exists and would be common. anyway, i'll see if i can make yours work or your leads. thanks again.