Meta viewport tag

how can i get this meta tag in webviewer version 11 using modular UI shadow dom.

Hi,

In WebViewer version 11 with Modular UI, WebViewer is encapsulated within a Shadow DOM as a Web Component. The <meta name="viewport"> tag, however, is always part of the main document’s <head> and not inside the Shadow DOM of WebViewer.

If you want to access or modify the meta viewport tag, you should interact with it directly in the main document, not inside the WebViewer’s Shadow DOM.

const viewportMeta = document.querySelector('meta[name="viewport"]');

Let us know if you have any questions.

Best Regards,
Mickaël.