Issue on PC/Windows browser: When performing action, h1 header "gif" disappears and video starts playing.
Problem on mobile devices: The gif does not disappear as expected but the video still plays indicating that JavaScript is functioning correctly.
Why does the display toggle function differently on Android Chrome compared to Windows Chrome?
Relevant code snippet is shown below:
this.play();
this.removeAttribute("controls"); // this line works fine
//h1.style.display="none"; // this line doesn't work
this.previousSibling.style.display="none"; // this line also doesn't work