Below you can see the front-view size comparison of the Nikon P510 and Sony RX10 IV. The Nikon P510 is clearly the smaller of the two cameras. Its body is 13mm narrower, 11 mm shorter and 43 mm thinner than the Sony RX10 IV.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.