Video in home page before login

I’m using this HTML in login_required.welcome_message, looks and is playing fine in desktop version. …

 <header>
  <div class="overlay"></div>
  <video playsinline= "playsinline" autoplay="autoplay" muted="muted" loop="loop">
    <source src="https://forosmx.s3-us-west-2.amazonaws.com/Coronaci%C3%B3n+vanessa.mp4">

  </video>
  
</header>

But in the mobile version it looks very large and does not fit the size of the devices.

Can the problem be fixed?

I need help, please.