On this page
What this issue is
A video modal (also called a lightbox or video popup) is a window that opens over the page when someone clicks a thumbnail or play button. It usually holds a YouTube, Vimeo, Wistia or similar embed inside an iframe, which is a page shown inside your page.
The issue is when that window does not work. The box opens empty, shows a grey or black area, shows 'refused to connect' or 'video unavailable', or the click does nothing at all.
Why it costs you leads or sales
Many pages use a video to explain the offer, show the product or build trust just before a call to action. If the video fails, visitors lose that explanation and may leave. The impact is usually lower than a broken form or checkout, because the rest of the page still works, but it matters on landing pages where the video is the main pitch.
- Landing pageLoads normally
- Click playModal opens
- Video loadsBlank box or error
- Visitor convincedPitch not seen
- CTA clickFewer visitors reach it
The page loads, but the video that should persuade the visitor never plays.
The visitor clicks play and the modal shows an error instead of the video.
How to check if your site has it
Open the page in a private window
This avoids cached files and extensions that may hide the problem.
Open developer tools
Press F12 (or Cmd+Option+I on Mac). Go to the Console and Network tabs.
Click the play button
Watch for red errors in the Console and failed (red or blocked) requests in the Network tab.
Read the message
'Refused to display in a frame' or 'X-Frame-Options' means the host blocks embedding. A 404 means the URL is wrong. 'Blocked by CSP' means your Content-Security-Policy does not allow the video host. A script error means the lightbox code failed.
Repeat on mobile and with consent declined
Test on a real phone, and once with cookies rejected, because some consent tools hide embeds until you accept.
| What you see | Likely cause |
|---|---|
| Nothing happens on click | Lightbox script failed or JavaScript error |
| Empty modal | Empty or wrong video URL in the trigger |
| Grey box saying the content is blocked | Consent tool holding back the embed |
| 'Refused to connect' | Wrong embed URL format or embedding disabled by the video owner |
| 'Video unavailable' | Video deleted, made private or restricted by region |
| Console says blocked by CSP | Content-Security-Policy missing the video domain |
How to fix it
Fix the cause you found in the console. The steps below cover the most common ones. Use the platform tabs for where to change things.
Use the embed URL, not the watch URL
YouTube needs https://www.youtube.com/embed/VIDEO_ID, not the watch?v= link. Vimeo needs https://player.vimeo.com/video/ID.
Check the video itself
Open it in a logged-out window. Make sure it is public or unlisted, not deleted, and that embedding is allowed in the video's settings.
Allow the video host in your security headers
If you use a Content-Security-Policy, add the host to frame-src, for example https://www.youtube.com and https://player.vimeo.com.
Sort out consent handling
If your consent tool blocks embeds, show a clear 'Accept to watch' prompt, or use youtube-nocookie.com, and make sure the video loads after consent is given.
Fix the lightbox script
Make sure the script loads without errors, is not blocked by a minifier or delay setting, and does not conflict with another plugin.
<iframe
width="560" height="315"
src="https://www.youtube.com/embed/VIDEO_ID?autoplay=1"
title="Product video"
allow="autoplay; encrypted-media; picture-in-picture"
allowfullscreen>
</iframe>frame-src 'self' https://www.youtube.com https://www.youtube-nocookie.com https://player.vimeo.com https://fast.wistia.net;Check the plugin or block
Open the page in the editor and re-enter the video URL in the lightbox or video popup widget of your page builder or plugin.
Rule out optimisation plugins
Temporarily turn off JavaScript delay, minify or combine options in your cache plugin and test again. Exclude the lightbox script if that fixes it.
Update and test for conflicts
Update the lightbox plugin and theme. Switch other plugins off one by one on a staging copy to find a conflict.
Check the section settings
In Online Store > Themes > Customize, open the section with the video and re-paste the YouTube or Vimeo URL.
Look for app conflicts
If an app adds the popup, disable it in Online Store > Themes > Customize > App embeds and test again.
Check theme code
If the modal is custom, open Edit code and confirm the iframe src uses the embed URL format.
Check tags that inject the modal
If a Custom HTML tag builds the popup, open it in Preview mode and confirm it fires on the right page.
Check consent settings
If the tag waits for consent, confirm the trigger fires after the visitor accepts.
Use the Video or Lightbox element
Add the video URL in the element settings. Webflow's native Lightbox expects a public YouTube or Vimeo link.
Publish and test live
Some embeds do not load in the Designer preview. Publish and test the live page.
Check the video element
In the funnel or website builder, open the popup or video element and re-enter the video URL.
Test the published page
Open the live page link in a private window, not only the builder preview.
Re-add the video
In the editor, check the video player or lightbox settings and re-enter the video link.
Check the lightbox content
Open the lightbox in the editor and confirm the video element sits inside it and is visible.
Check the video block
Edit the block and re-enter the URL. Use a public link from a supported host.
Check code injection
If a custom lightbox script is added under Settings > Advanced > Code Injection, check it for errors.
Fix the src and headers
Use the embed URL, and make sure your CSP frame-src and any X-Frame-Options or Permissions-Policy headers do not block the host.
Load the script reliably
Confirm the lightbox JavaScript loads before the click handler runs and does not throw errors.
Broken
- Click opens an empty or black box
- Console shows a blocked frame or 404
- Visitors skip the video
Fixed
- Click opens the player
- Embed URL and headers allow the host
- Video plays on desktop and mobile
How to confirm it's fixed
- The modal opens on click on desktop
- The video plays on iPhone and Android
- No red errors in the Console when the modal opens
- The video loads in a private window
- The video loads after accepting cookies, and a clear message shows if cookies are declined
- The close button works and the page scrolls again
How to prevent it happening again
Video modals break quietly because they depend on things you do not control: the video host, a plugin update or a consent tool change. Keep a few habits.
- Keep important videos on a channel you control and do not delete or make them private
- Retest the modal after plugin, theme or consent tool updates
- Keep a note of which pages use video modals
- Use a poster image and a plain link to the video as a fallback
- Check the page again after changing security headers
How FunnelGuard handles this
FunnelGuard detects this today. Its no_broken_resources check looks for page resources that fail to load while a robot visitor runs your journey. A video embed that returns an error or is blocked can show up this way. The check is marked third party, so it relies on what the video host returns at the time of the run.
Be aware of the limits: this flags failed resources, not whether the video looks right or plays smoothly to a person. A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.
Questions people ask
Why is my video popup blank?
A blank video popup usually means the iframe has an empty or wrong URL, the video host refuses to be embedded, or a script or consent tool stopped it loading. Open the browser console and Network tab, click play and look for the failed request or error message.
Why does my YouTube video say 'refused to connect' in a modal?
This usually happens when the iframe uses a normal watch URL instead of the embed URL. Use https://www.youtube.com/embed/VIDEO_ID. Also check that the video owner allows embedding and that your site's Content-Security-Policy allows youtube.com.
How do I fix a lightbox video that doesn't play on mobile?
Test on a real phone and check the console for errors. Mobile browsers often block autoplay with sound, so remove autoplay or add a visible play button. Also check that the modal fits the screen and the close button is reachable.
Can a cookie banner stop my video modal from loading?
Yes. Some consent tools block YouTube and Vimeo embeds until the visitor accepts cookies, which leaves an empty box. Show a clear 'Accept to watch' prompt, or use a privacy-enhanced embed such as youtube-nocookie.com where it suits your policy.
Why does my video modal work in the editor but not on the live site?
Live sites often add caching, script delay, minification, consent tools or security headers that the editor preview does not. Disable those one at a time and test the published page in a private window to find the cause.
Can a Content-Security-Policy block my video?
Yes. If your policy has a frame-src or default-src directive that does not list the video host, the browser refuses to load the iframe. Add the host, such as https://player.vimeo.com, and the console error disappears.
Can FunnelGuard tell me when my video modal stops loading?
FunnelGuard's no_broken_resources check can flag page resources that fail to load during a scheduled journey run, which can include a broken video embed. It does not judge playback quality. Alerts come with a screenshot and a likely cause.
Related issues
- CNV-118Modal opens behind overlay (z-index bug)Fix guide
- CNV-120Scroll locked after closing modalFix guide
- CNV-112Popup covers the form or CTA and can't be closedFix guide
- CNV-113Close (X) button missing or off-screen on mobileFix guide
- CNV-119Age gate / region gate blocks the robot and real usersFix guide
- CNV-114Popup reappears on every pageFix guide