Encountering an odd issue with video embedding.
When I visit in any desktop browser (like Chrome or Edge) and scroll down to the "Troubleshooting" question, the embedded YouTube video on the right is missing. However, resizing the browser window causes the video to mysteriously appear!
I've tested this across different browsers and computers, all showing the same problem. Interestingly, the issue doesn't occur when viewed on a mobile device.
Below is the code snippet used for embedding the video:
.codegena {
position:relative;
width:100%;
height:0;
padding-bottom:56.27198%;
}
.codegena iframe{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}
<div class="codegena">
<iframe width="560" height="329" src="https://www.youtube.com/embed/OwlGTVh06NQ?&modestbranding=1&rel=0" frameborder="0" allowfullscreen="">
</iframe>
</div>
No clue what's causing this strange behavior.