The purpose of this is to hide a video and replace it with a background image on mobile devices.
I've seen many questions about the same topic. A lot of them say, add
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
and everything seems to work out fine.
I have that already. My css is:
@media screen and (max-width:999px) {
.et_pb_section_video_bg {
background-image:url("/wp-content/uploads/2017/02/Old-Instrument-Broken-Abandoned-Wrecked-Piano-Dark.jpg");
background-size: cover;
}
#mep_0 { display: none; }
}
On a desktop, I can narrow the window and I see the background image that I specified in my css. On a phone or tablet, there is nothing.
Here it is in action: UPDATE: REMOVED URL
Any ideas why this won't work on mobile devices?