iframe width difference
Unanswered
Barbary Lion posted this in #help-forum
Barbary LionOP
I am using iframe in my next app to use a game. in desktop it's looking alright but on mobile width it's zooming in.
this is the code for the specific component, I am using tailwind css
https://gist.github.com/shanXdev/06944620a868bb02c87ee41820f7d0f2
this is the code for the specific component, I am using tailwind css
https://gist.github.com/shanXdev/06944620a868bb02c87ee41820f7d0f2
3 Replies
Greenish Elaenia
First of all, how do you want it to look on mobile?
Rn you told us it zooms in. Imo it also could be your mobile screen is narrow and it's showing only part of the iframe with the same dimensions as the iframe on desktop
Rn you told us it zooms in. Imo it also could be your mobile screen is narrow and it's showing only part of the iframe with the same dimensions as the iframe on desktop
I think what you want is to rotate the iframe on mobile to be landscape then cover the entire screen, right?
Barbary LionOP
the issue is sorted i will update gist