hide screen when potrait mode html code example
Example: how to lock device orientation using css and javascript
@media only screen and (orientation:portrait){
body {
height: 100vw;
transform: rotate(90deg);
}
}
@media only screen and (orientation:portrait){
body {
height: 100vw;
transform: rotate(90deg);
}
}