Is there a way to prevent landscape mode on my website and restrict users to portrait mode, especially for devices with screen widths below 777px? I have custom headers that take up fixed position space of around 100px on the screen.
If it is possible to achieve this, please let me know how. I tried using some code that was suggested as a solution for this issue, but encountered a problem like the one shown in this screenshot.