Is it possible to make an element trigger only once per page load?

Hi there- I’m wondering if it’s possible to make an element trigger only once per page load?

My use case is I’m using a Mouse Hover Out on the site Body to trigger a div to go from hidden to block, which simulates an email pop up tigger when a user is exiting the page.

I used custom code to add a cookie to the user’s browser, so once the user reloads the page, the pop up won’t happen again.

The problem is if the user hovers out of the page multiple times without reloading page page, they will have to keep closing the pop up.

If I were able to make the element trigger happen only once per page load I believe this would solve the problem. Thanks in advance for any suggestions!