I have a site (based on dynamic content by JS) and I want to trigger a first time popup to users in order to make them register to the newsletter (it will be cookies based).

Is there a way to do that without cloaking/manipulating user-agent for bots? I don't want the search engine bots to see that popup all the time (because they don't accept cookies) - it will harm the SEO.

Does verifying if agent is accepting cookies and based on that show/don't show the popup is consider cloaking? Or is that a wise way to handle the scenario?