Try using a[href*="#"] {display: none;} These selectors identify the # in the href attribute of the anchor, and if it is found, it applies the style
You can use it in another way, for example, header a[href*="#"] {display: none;} This way you will not ruin all the bindings on the site!
Junaid anwar
source share