Please share an example URL and what you mean by "edit" its parent element.
The MktoForms2 object is of course global but everything else is pretty well encapsulated.
We changed the embed to using an iframe that references a plain landing page instead. The plain landing page contains the form that was previously embedded using the script.
This solved the issue for us.
Hmm okay, but a major change to the architecture that shouldn't have been necessary. I'd still like to see an example of the former behavior.