Can you display none on a DIV if URL has string?

We are using a page builder that loads content at the top of the main Shop page.
But when you run a search, it seems to use that same shop page, as the Page Builder content appears when you do a search.

So, is there a way in a Function to say:
if PAGE = 123 and URL contains “post_type”, #shophide display:none.

I’m a bit stuck.
I did try a Javascript tool via the Page Builder, but it seems to ignore it.
Simon

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer