I noticed you can set the source dynamically for an HTML Embed element using Wix code, but is it possible to dynamically set the HTML?
Short answer - no.
However, you could write a “base” script that would modify itself by accepting a snippet of code that was passed as a message and would then be embedded within the “base” script itself.