Add content within a post for either paid for free members

Hello, is there a way to add a specific content (text, html, markdown, etc…) and have it be only be shown to a specific user type ? For example, there is (Email cards, and Email call to action cards) that we can use to include in an email for paid or free members. But how about some other card to also include in the post and email that will be for free or paid members.

Use case:
Ads within a post. A user could be a paid member but not see any ads within a public post or email they receive, conversely a non-paid member would see the ads when they view the post or receive an email.

Would this be possible to do with javascript ? to figure out the user’s membership status

This’ll accomplish that for posts, but I don’t imagine it’ll carry over to emails.