The other is to cover the area with a contact paper and trim the outside to match the edge of the switch plate.
Gap between light switch and wall.
When you add a switch or outlet cover there s a gap between the cover the wall.
Typically the standard size is used for new construction where construction tolerances are tighter.
Twist the white wire from the light fixture to the white wire coming from the wall using a clockwise motion.
If the gap is bigger and lopsided use foam sealant that s formulated for use around doors and window framing.
Twist the ground wire coming from your light fixture to the ground wire coming from the wall using a clockwise motion.
I think they invented them just for situations like this.
The minimally expanding foam won t drip down your walls.
If the gap between the electrical box and the drywall is less than 1 4 in fill it with acrylic latex caulk.
This can happen when you remove wall paneling tile wainscot or batten.
Look for some oversized cover plates.
In situations where drywall workmanship is sloppier creating a large gap between the electrical box and the drywall or in cases where removal of an old cover plate leaves an old paint line then use of the preferred or even the oversized cover plates work well.
Find the right depth for your needs.
Make sure they are firmly connected.
Your area looka a bit rough so the contact paper might have a tough time laying flat.
Deep plates feature a deeper edge bevel to reach back farther around your electrical box s edges.