No product fits all but the BabyDan Flex System comes close.
It is ideal for safe guarding fireplaces as well as irregular stair cases and door ways. The system consists of various components which you can put together to suit your purpose. You can combine the components whichever way you like and can even have two gates.
The Flex System
This wall mounted system consists of sections that can be combined and configured freely to guard a fireplace, a stair case or act as a room divider. You can even have two gates.
The mounting brackets are fully flexible and you can secure the system on straight or angled walls. A quick release system lets you remove it in a few seconds.
The Flex System is available in two set sizes: Flex L & Flex XL and in two colours, black or white.
Each component is also available individually for extension so you can create exactly what you need.