Change header color on notification

This may be a simple question (I hope) but I’m having trouble searching for a solution.
Is it possible to alter the Home Assistant lovelace header color when a device state changes or a notification is sent?

I’m not sure if it can do it but check out “Custom Header” in HACS.