I am using Automattic's plugin to implement AMP on my website. Currently, to make my videos responsive, I wrap YouTube videos around a custom div. So, a YouTube video on my website looks like this:-
<div class="yt"> <iframe>....YT video code...</iframe> </div>
The problem is the
<div class="yt"> and the closing
</div> both appear on the AMP pages too. How can I remove them? Already tried asking on the official support. No replies yet.