That should work, but without more info I can’t tell you if this is a conflicting code, code-in-the-wrong-spot, a cache thing, or something else entirely.
Try it on a different device/network or clear your cache. If it still does not work please share your URL.