Is it possible to restrict content based on ID or class?

I'm wondering if I labelled a section is having an ID or class of:

If then that section was only visible to people logged in.
I basically want to hide particular elements from guests without giving them a restricted content warning... just have it not show up for them.

I can't use shortcodes because I'm using the Divi Theme by Elegant Themes and some of the elements I want to hide are using custom elements rather that just text modules.

On this page:
I would like to hide the third text section. The come join us and the image next to it. So I'm wondering if I can just give that whole section an ID or class which makes it hidden from people who are not logged in.