Customizing the space sidebar

Hello, I am trying to create a theme (as a plugin) that displays a confluence space differently for anonymous users. I have figured out how to check if a user is logged in. I have figured out where to find and customize most of the VMD/VM files.

I want the sidebar to be different for users who are not logged in. I would like to hide some elements and add to the sidebar. Is this even possible?

I am struggling to figure out where I can modify the elements in the sidebar. Is there a VM file for this somewhere?