Hide info bar on certain scenes

I'm trying to add some JS to hide the info bar on certain scenes but the solution I found isn't working for me. Here is what I've tried.

$(document).on('knack-scene-render.scene_41', function(event, scene) {
var myElement = document.querySelector(".kn-info-bar");
myElement.style.display = "none!important";

and ideas about what I'm doing wrong?



What is your scene view? Is it correct?