In this case, sitting on the dining table without seeing the bathroom door is actually the best feng shui method. Therefore, if the dining table is large enough, you can adjust the position of the dining table, and then use a partition cabinet or screen between the dining table and the bathroom door to block the line of sight between them, so that the influence of the bathroom on the dining table is almost gone, and you can eat more safely when you can't see the bathroom.
Of course, if the area is enough, you can also install a wall in the dining room, of course, a simple wooden wall. This three-dimensional effect and sound insulation effect are also acceptable, and then install a door on the wooden wall, which will solve all the problems.
If the restaurant area is really small enough, the same feng shui effect can be achieved by transforming the bathroom door. Of course, it would be better if this situation was considered before the house was renovated. You can combine the bathroom door with the wall and make the bathroom door a secret door, so that you can't see the bathroom in the restaurant and you can eat with peace of mind.