Hi there,
WordPress adds CSS Classes to the body tag of all pages. The search page has this class: search-results
You can use that to target elements only on that page – for example changing the font size of the H1:
.search-results h1 {
font-size: 25px;
}
or adding styles to your H2
.search-results h2 {
/* your styles here */
}
You can also create a Header Element for it by selecting the Search Results
display rule:
https://docs.generatepress.com/article/header-element-overview/