If you’re using a Block Element, in the Display Rules, you can set it up so the it appears only to logged in or logged out users. Example: https://share.getcloudapp.com/4gueGnKE
So, you can create a Block Element and inject the Block you want appearing or disappearing depending if a user is logged in or not.