Add a HTML+CSS only popup for user icon:
Use a boolean flag to control if the anonymous or logged in version is displayed.
boolean