Hi, your Sonoff is already small.
What you can do is change your junction box to a special one for home automation.
You can find them everywhere in single and double.
Clearly, especially since with a glue gun, 1 cutter and some recycled plastic it costs 0€ … no need for something clean for a hidden thing!! Okay, 5 or 10 cents of glue at most ^^
The thing is, it’s flexible plastic, so you can fold the pouch to install the box. And some people are quite particular about insulation, so they want to avoid DIY!