Can I change picture of switch to custom?

There are only two types of switch in the HA by default.
How can I change it to something else? For example :
switch2

If you haven’t done so already, install HACS https://github.com/hacs/integration Then go to the frontend section and search on button. There are several custom Lovelace button types that will likely get you, if not exactly, very close to the look you are trying to achieve.

No. There is nothing to replace the switch button.

Help me understand why you say that.

There were seven results for the word “button”. They all change something, but continue to use flat “mdi:” - icons. I want to replace them with those “glass” squares from the first post.

Then what you will want to do is investigate the Lovelace Picture Elements card and potentially Picture Entity card. You can define the images and placement any way you like.