You need to measure the offset in XY and enter it in G31.
For the mesh, you must create a mesh size that keeps the probe within the bed area to make the best use of the area. The firmware will skip points it can't physically reach.
For bed.g and homing files you must position the probe where you want first.