Copy link to clipboard
Copied
I'm working on editor WIX since we have a preview site and the iframe cannot find that it is in mobile view and still render as desktop view mode so how can I add the user agent that it's mobile view?
Copy link to clipboard
Copied
Use navigator.userAgent.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent