Hide attribute if user log out

Hello can you help me please what code css to use for hide email and phone number if user log out.

Hello,

if a user is logged in, the body element will hold a class logged-in

<body class="logged-in ....>

I suggest you use this to display the element when the user is logged in, otherwise not.

ex :

/*add css to customizer */
.my-element{/*default */
display:none; 
}

body.logged-in .my-element{
display:block; 
}

Hello,
Thanks to your answer.
It’s not ok for me.
Can you give another solution please.
Best regards

The what i want is this:
Hide phone and Email when the user is not connected like this


Show Email and phone when the user is connected
Thank for your reply.

Please provide link to your website.

Hello Condo,
I found the solution.
Thank very much.