I am in the process of creating a video site with fullscreen capabilities. My goal is to automatically switch the page orientation to landscape mode when it is accessed on a smartphone. I attempted to achieve this using css media orientation, but unfortunately, it did not succeed.
Can anyone assist me in implementing this feature using JavaScript instead?