Problem : The embed codes generated from HubSpot does not work in WordPress Elementor plugin Popup. It shows blank instead.
Solution :
Recenty I came across this issue and was being able to resolve with below steps:
Step 1: Include Common HubSpot Script in the commom Code Snippets and Set conditions as required. Common Script as below :
<script charset=“utf-8” type=“text/javascript” src=“//js.hsforms.net/forms/embed/v2.js”></script>
Step 2: Create Elementor Popup
Step3: Inside Popup use HTML widget and include HubSpot code inside below script
<script>
jQuery(document).ready(function($) {
hbspt.forms.create({
region: “…”,
portalId: “…”,
formId: “…”
});
});
</script>
*Replace “…” with your form data.
This solved the form visibility problem in Elementor popups for me. Additional thoughts or better approach is always welcome 
Hope That helps.
Thanks for sharing @ShubhamJarwal95
— Jaycee
Does this still work for you? It didn’t for me.
Hello @ManuelWill
Yes, It still works for me. I have been using same setup as mentioned. If you can share more details how you have setup things..may be I can help you some way..Thx.
Out of every solution I’ve looked at so far, this is the only one that actually seems to work.
Though just a quick note, when previewing the popup, it shows 2 forms stack on top of one another, but on the live site only one actually appears.
Also I added the custom code in the start of the body.
Thank you so much for posting the solution.
I wasted an hour trying ChatGPT’s ridiculous suggestions, where each time it claimed to have “final foolproof fix” that got more and more complicated.
Your human solution worked effortlessly and sucessfully!
This did not work for me! I’m trying to get the popup to display on blog posts. It displays on Preview changes but not View page. And when I navigate to any of my blog posts, no amount of scrolling will trigger the popup.
Curious if anyone is doing this with or without the HubSpot WordPress plugin installed and activated? My company won’t give me the permissions to install so I have had to do everything manually - tracking code and form embed code.
I’m using the Elementor Popup with the HS Plugin installed. That being said, with your setup you might want to give a try to the Off-Canvas element instead. This gets loaded differently on page load and might work with the embed code. Downside, it has to be either added to a template to use globally or manually added to each page where it should be visible.
Thanks for sharing @CycloneGirl98 ! I’m glad it worked!