I’ve been looking around for some information on traps in bathrooms.
For bathroom drains that smell the solution is to flush and refill the p trap or u trap.
Water levels can get low in some p traps u traps etc which can evaporate with low use, and require a refill to bring the water level up in the p trap to work properly again preventing sewer gas from leaking back.

When P trap or U traps get low water levels they start to let in aerosols (bad air smell) from sewage pipes
Are they any auto water refill P trap systems around ?, Yes they called trap primers.
https://en.wikipedia.org/wiki/Trap_(plumbing)
https://en.wikipedia.org/wiki/Trap_primer
How To Get Rid Of The Sewer Smell From A Bathroom
https://www.superterry.com/get-rid-sewer-smell-bathroom/
Drain Backflow Preventer One Way Valve for Pipes Tubes in Toilet Bathroom
https://www.amazon.com.au/Backflow-Preventer-Toilet-Bathroom-Silicone/dp/B075WRS7VW