This is related to a previous question i asked. https://community.shopify.com/c/Technical-Q-A/What-is-the-purpose-usage-of-the-quot-no-js-quot-class...
I took the default Supply theme and the only change i made was adding a photo for the header logo. I haven't edited the default code at all.
Well, you have to check theme code if there is any issue then it will not work or sometimes developer set "no-js" for stopping other js to that element only.