Color value/background change on value change


I’m using latest grafana version with prometheus metric.
I wonder if there’s a way to change Stat panel background or text color on value change.
For example if my query return 5 and next refresh its will be 7 I want to color the panel a red color and if on the next refresh it’s still 7 return the panel to original color.
The threshold using fix numbers and I didn’t find a way to configure it to depend on last result.
Tried to look online on different plug-ins but couldn’t find and answer.

Thank you in advance for your help.