How can I set separate videos on mobile and desktop to be my homepage background? *dawn

How can I set separate videos on mobile and desktop to be my homepage background? *dawn

jack717
Tourist
6 0 1

I am currently using code I found on youtube to allow me to have a looping video as the background on the dawn theme. I would like to be able to have separate videos for each desktop and mobile as mine feels messy. It could also be the same video, but different dimensions! Ill paste my current code below, but thanks for the help in advance!

 

<style>
video {
width: 100%;
height: auto;
display: block;
margin: 0 auto;
}
</style>
<video muted autoplay playsinline loop>
<source src="video url"
type="video/mp4">
<source src="video url"
type="video/mp4">
</video>

Replies 5 (5)
jack717
Tourist
6 0 1

But how?

jack717
Tourist
6 0 1

Could you share your code please?

jack717
Tourist
6 0 1

Where is the video section??

jack717
Tourist
6 0 1

Can someone else please help😭

jack717
Tourist
6 0 1

I do need it.