When exiting the garden to the side where we saw the mausoleum before we're at this gate. One has to climb some stairs, the mosque is built on a hill or maybe some artificial raised foundatrion (that I doubt).
The writing above the door may well be the one that indicates who was its architect.