Mountain Bike Vs Road Bike Geometry. A proper fitting will take into account your geometry and the bike geometry and try to get a match. The frame materials used for cyclocross bikes are the same as road and mountain bikes, commonly made from either carbon fibre, aluminium, titanium, steel or a combination of these materials.
Given the sporty nature and quicker handling of the flat bar road bike, it's no surprise to see the wheelbase is narrower, the chainstays shorter, and the headtube angle steeper. The geometry charts show that almost all measurements (head angle, seat angle, chainstay length, fork trail) are somewhat halfway between that of a long distance touring bike and a road racing bike. Road bikes tend to have longer top and head tubes and steeper head/fork angles than mountain bikes for a given rider size.
For off-road use and over rugged terrain, a mountain bike is the best choice.
Mountain bike geometry is even more upright and emphasizes stability and control.
Simply said, a gravel bike is a combination of a road bike (happy on tarmac) and a cyclo-cross bike (happy on mud). They will often have more stack and slacker head tubes. A proper fitting will take into account your geometry and the bike geometry and try to get a match.