I’m not sure if this will work with HTML Embeds. But instead of HTML Embeds you can use custom elements to fix this.