I'm having the following problem:
I have a page that has several slides in HTML itself. All of these slides have their size set to vh
instead of pixel
.
The problem is that when I access with mobile, the cell being horizontal is fine, but when I put it vertically it does not display the slide I was in, it does the vh
recalculation due to the orientation change of the mobile, and move on to the next slide.
Firstly I thought about disabling the mobile screen transition via javascript, but it seems to be gambi .
How can I see if the site is being accessed by mobile and run a function in javascript so that it replaces everything that has vh
to pixel
?
I do not know if this is the best option, if anyone has a suggestion I am very grateful.