Markdown-card OR custom:useful-markdown-card - display ICON and hide-condition

@thomasloven
Is it possible to display a mdi:icon in one of these cards. And is it possible to have condition statement to hide/display the icon (trying to use a binary sensor)?