Hiding the Search Bar - Please Help

Hey y’all,

I’m trying to inject custom script in the header to simply hide the search bar completely on all pages. I’m a novice starting to learn some development and I’m trying to manipulate the CSS code using the search bar div.

Am I on the right path here?

Can you please help me with the line of code needed to hide elements on all pages using the custom script in the admin console.

What I used so far:

.SearchBar__root__#### {
display: none;
}

Thank you so much in advance!