I think I have discovered the source of the problem.
If I enable “Safe mode” on the widget maker page with the preview, I get the same results as with my embed code.
So, I believe that the safe mode is not disabling for the embed code, even if its disabled with the preview.