Displaying for Logged-In Users Only
You can target anonymous users to hide elements from them. Like this for example, which hides the tags in the navigation sidebar menu from users who are not logged in. You can use a similar code to hide any element in the header from anonymous users.
.anon .sidebar-section-wrapper.sidebar-section[data-section-name="tags"] {
display: none;
}