How to change the background color of button

Hi everyone, I have a question.

I want to change the background color of the button. For example: When the button is clicked the background color change in white and when I clicked again on it, the background color return in the original color.

But I want this situation for more than one button not for only one.

I've read several topics, but nobody works for me.

does this not work ? Examples of Colour change button and switch

It works for only one button because if I add a new one, this flow changes both of them.

can you provide your flow where both buttons change when you press one