Joy-Con is not working properly? (Nintendo Switch)?

Wr
- in Nintendo
3

My right Joy Con has not been working properly for a few days: as soon as I want to take it off the switch to play with friends, for example, everything works except the side that is normally plugged into the switch (buttons SL and SR). The lights do not work even though the rest of the Joy Con is connected to the switch. Now some games (mostly multiplayer) are not playable. Is it broken or can you do something about it?

Se

Then play fortnite with your pro controller

Wr

This answer is not helpful at all. Fortnite works because you need ZL and ZR. I'm talking about SL and SR.

Sq

I assume that the defect is.