N
N
Nekio2021-07-20 17:03:55
JavaScript
Nekio, 2021-07-20 17:03:55

How to automatically rotate the user's screen on a mobile device using JS?

It is necessary that the screen rotation function on the phone automatically work when entering the site.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2021-07-20
@Stalker_RED

Lynn "Coffee Man" , not true, not just a message. Can do

document.body.style.transform = 'rotate(90deg)'; // попробуйте в консоли

And adjust the width and height.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question