Thread Starter
F
(@mekhtelef)
Never mind, I just tried changing iframe width/height and it didn’t work. When I check the page on my phone (link) I still get the mobile version.
If you happen to know a way to force the desktop version on mobile, that would be great!
Plugin Author
Alex
(@alexdemchak)
Hey, apologies in the delay. Unfortunately I don’t know if there’s a way to really do it. There’s a few JavaScript solutions that seem relatively hit or miss:
https://stackoverflow.com/questions/12845445/load-iframe-content-with-different-user-agent?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
https://stackoverflow.com/questions/42741888/iframe-how-to-force-desktop-view?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
It doesn’t seem like “trick an iframe’s useragent/viewport size” has a reliable implementation method – but if you find one you’d like implemented I can absolutely take a look
Plugin Author
Alex
(@alexdemchak)
Just a note – As of Content Mask version 1.6, there is a Custom Scripts and Styles feature, as well as embedded hooks, that allow you to modify the iframe slightly. It wouldn’t address the “trick the viewport” issue, but allows for some simple modifications like sizing and adding backgrounds to semi-transparent frames.