Using Bubble Buttons, Switch mode if value greater than 10 change background

Using Bubble Buttons, Switch mode if value greater than 10 change background, so the first entity (main icon and button) is a tapo smart plug, the second icon to the right shows the value of the watts being used, what code do I need to detect this second entity and if over 10 change background to orange?