Popup location attached to top

If you’re asking how to make the popup appear at the top of the user’s screen (or anywhere else for that matter), then it’s simple with some custom CSS to set the inset property.

Here’s an example where the position can be modified dynamically:

Popup (bubbleapps.io)