How to display the last_updated field of an entity in the lovelace view

it depends on how you want it rendered, but one simple way is to use the mushroom title card, which allows you to do something like this:

{{ state_attr(‘binary_sensor.natgas_sensor_158d0001002929cc6b’, ‘last_updated’) }}
{{ state_attr(‘binary_sensor.natgas_sensor_158d00012929cc6b’, ‘last_changed’) }}

type: custom:mushroom-title-card
  {{ states.binary_sensor.natgas_sensor_158d000129cc6b.last_updated }}
  {{ states.binary_sensor.natgas_sensor_158d00012929cc6b.last_changed }}
alignment: center

get the mushroom card here:

EDITED:
spaced on using attr