phone orientation lock 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);
}
}