Hiding sidebar/page metadata for anonymous viewers

Hi, guys,

is it possible to hide data such as ‘created by’/‘last updated’ or hide the sidebar for anonymous viewers?

Thank you so much in advance for any information