This feng shui pattern is not necessarily as bad as some feng shui masters say. According to my observation, many families have lived in harmony and stability for decades.
The most fundamental way to change this feng shui pattern is to change one of the toilets into a storage room or something else to achieve harmony between Yin and Yang. However, that will bring inconvenience to life, so I don't recommend it.
I suggest hanging a small round mirror behind the toilet door (you can hang a small mirror on the door instead of a big mirror), and placing plants with yang in the toilet all the year round to alleviate the odor (if the plants are watered and cared for normally and often die, it means that the odor is too heavy, so we must find other ways to solve it, for example, please turn on the light and Buddha statues in temples or Taoist temples. )。