Search Function - How to exclude an entire loop grid from being filtered

Hi all…

I’ve created a search results page template using a query loop (Projects), which works fine.

However, I also have a mega menu with another Projects query loop, showing the latest 4 projects.

The issue is that my search element no only filters the search results page, but also the mega menu loop grid. Is there a way I can specifically target the query loop I want to display the results with?

Thanks.