Experimental investigations of surface forces generally involve two solid bodies of simple and well-defined geometry interacting across a medium. Direct measurement of their surface interaction can be interpreted to reveal fundamental physics in confinement, i.e. independent of the particular geometry. However real solids are deformable -they can change shape due to their mutual interaction -and this can influence force measurements. These aspects are frequently not considered, and remain poorly understood. We have performed experiments in a dry atmosphere and across an ionic liquid with a Surface Force Balance (SFB), combining measurement of the surface interactions and simultaneous in-situ characterization of the geometry. We show that the mechanical deformations of the surfaces have important consequences for the force measurements, qualitatively and quantitatively. First we find that, whilst the variation of the contact radius with the force across dry nitrogen can be interpreted by the Johnson-Kendall-Roberts (JKR) model, for the (ionic) liquid it is well described only by the Derjaguin-Muller-Toporov (DMT) model; this contrasts with the previous assertions that SFB experiments are always in the JKR regime. Secondly, we find that mica does not only bend but also experiences a compression. By performing experiments with substantially thicker mica than usual we were able to investigate this with high precision, and find compression of order 1 nm with 7 µm mica. These findings imply that, in some cases, (i) the procedure to calibrate mica thickness has to be revisited, and (ii) structural forces measured across nanoconfined liquids must be interpreted as a convolution of the surface forces across the liquid and the mechanical response of the confining solids. We show an example in which the detailed shape of the measured structural force profile cannot be described by the usual exponentially decaying harmonic oscillation, but is well fitted by an heuristic equation supposing that mica compression is dominant over liquid compression. We discuss the influence of mica thickness, and propose a scaling criterion to distinguish situations where the solid deformation is negligible and when it is dominant.