portrait rotation lock html css 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);
}
}