Change icon based on boolean state?


Hi! I’m having some trouble with changing an icon based on a boolean state.
What I want to do is make the icon change from mdi:account to mdi:account-multiple when i change the “input_boolean.guest_mode” state to “on”.
Does anyone know how to do this?

  - title: Main
    id: main
    #panel: true
      - type: glance
        #title: Status
          - entity: device_tracker.vetle_phone
          - entity: input_boolean.guest_mode
            tap_action: toggle
            name: Guest
              icon: "if (state === 'on') return 'mdi:account-multiple'; else return 'mdi:account';"


Maybe customize the sensor in your config and not in your lovelace UI