For reference if anyone ever needs it, you can add playsinline as an attribute in the video tag.
playsinline
<video autoplay playsinline muted loop class="custom-video"> <source src="myvideo.mp4" type="video/mp4" /> </video>