Narrow hardware installed baby gate?

Valerie

I have a very old house with a very steep and very narrow staircase. Between the bannister and wall there is only 27.75 inches. I need to find a hardware installed baby gate for the top of the stairs that will fit but I can’t one one! Has anyone else had and solved this problem???