Account Deleted
Hello.
I made you a quick example with a CSS only approach on playcode
https://playcode.io/630864/
On mobile, it opens the popover with the :focus
of the button, it closes with an outside click, and on desktop, it opens the popover with :hover
, also, you could use the open on click for default.
Update: ok, regarding the triangle, I leave it in the example too.