JSFiddle - React, Tailwind, and code Playground
HTML
<video controls autoplay>
<source src="https://www.w3schools.com/tags/movie.mp4" type="video/mp4">
</video>
JavaScript
$(document).ready(function(){
var screenWidth = $(window).width();
if (screenWidth < 800){
$('video').removeAttr('autoplay');
} else {
$('video').attr('autoplay');
}
});