Below you can see the front-view size comparison of the Sony A9 and Sony A7R IV. The Sony A9 is 2 mm narrower and 15 mm thinner than the Sony A9 but they have the same height of 96 mm.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.