Auto height on background video

I’m trying to create some responsive device screens (desktop and mobile) by using the background video element with screen recordings inside. I’ve set width 80% on the desktop and 22% on the mobile. The height needs to be auto on both to get the right proportions. I know that by default the height is 500px. Is it a way to make it auto? Do I need some custom code?


Here is my site Read-Only: LINK
(how to share your site Read-Only link)