Hello,
You can also consider using the following code:
<div class="video-wrap">
<video id="slide-video" poster="images/videos/deskwork.jpg" preload="auto" loop autoplay muted>
<source src='images/videos/deskwork.webm' type='video/webm' />
<source src='images/videos/deskwork.mp4' type='video/mp4' />
</video>
<div class="video-overlay" style="background-color: rgba(0,0,0,0.55);"></div>
<div class="video-placeholder" style="background-image: url('images/videos/deskwork.jpg');"></div>
</div>
and then the following JS Code:
<script>
jQuery(document).on( 'ready', function($){
if( $(window).width() < 1024 ) {
$('video').remove();
}
});
</script>
This should definitely work fine. Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.