How to show search results in popup


I want an search field that searched in 1 cms collection, and shows the results directly in an popup or directly on the page, like had in the hero section. I have added the search field but it’s isn’t working as I want, Can someone help me?

Thank you!