Display different colors in one panel when the queries consistent

there are two pieces of queries in one panel.
How to display red when two queries are different and green when they are consistent?
just like:


In earlier versions, it was possible to color a complete line based on one value.
But this function is no longer in Grafana.
Then you could have divided the values and colored everything that is not 1 in red.
So I would make a third field with exactly this calculation and only color this one.

I am looking forward to other ideas.

Jo

Thank for your solution.
This solution could set the color,but i still need display the origion value.Is there any other solution to the problem?