Hide HTML card in blog post based on if user is logged in

I am embedding some html into my blog post.
I only want to show it if the user is not logged in.
How can I wrap this html area in if statements to check if the user is logged in or not.

{{#if access}}
    <p>Thanks for being a member...</p>
  {{else}}
    <p>You need to become a member in order to read this post... </p>
  {{/if}}

or

{{#if @member}}
  <p>Thanks for becoming a member 🎉</p>
{{else}}
  <p>You should totally sign up... 🖋</p>
{{/if}}

How can I put this in a html card?