Skip to main content

Using the Visual Editor with a Shadow DOM

O
Written by Optimize Team

If your site uses a Shadow DOM (fully or partially), you can use the Visual Editor as normal.

The only requirement is that your Shadow Roots remain open. If they are closed, the browser prevents external scripts from accessing those elements, making tracking and transformations impossible.

No additional configuration or setup is required - this works out of the box with both the Visual Editor and the AI Copilot.

If you view a VE-generated script in the advanced editor, it may appear longer than usual. This is expected - additional code is included to target elements within the Shadow DOM.

Did this answer your question?