Below you can see the front-view size comparison of the Nikon P900 and Sony RX10 IV. The Sony RX10 IV is 7 mm narrower and 9 mm shorter than the Nikon P900 but it is also 8 mm thicker.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.