Hide elements from entity (css style)

Hi!

I am using card_mod to change some styles in lovelace, but some of them, I don’t know how to do it.
I want to hide (display: none) two elements, the icon and the name of an entity. Can someone help me? Thank you!
This is what I’ve done till now

type: entities
entities:
  - entity: input_text.key
    card_mod:
      style: |
        ha-svg-icon {display:none !important}
show_header_toggle: true

2 Likes