How to config to change color of icon for my lock?

I have a Danalock V3 with Z-Wave in my Hassio. I would like to change the color of the icon depending on the state, if it’s locked I would like the icon to be red and if it’s unlocked I would like the icon to be green.

Could anyone help me out here how to do that?

I have attached a picture of what I would like to change, see the icon of the loch below.

53