Hiding elements for anonymous users in Confluence Cloud

confluence-cloud
custom-theme

#1

Is it possible to develop an app/theme that can hide elements like “Space Settings” from the side bar and the … button on pages that leads to “Page Information” from anonymous users. If it is possible then any advice would be much appreciated.