Use two mortar lines that run toward the same vanishing point to guide the perspective grid. Switch to cloning mode, sample a clean section on the same wall and begin with a short stroke across the damaged joint.
If the horizontal joint matches but the brick widths jump, refine the plane or sample nearer the repair. Stop when the wall turns a corner and set up a new plane.
Removing an Unwanted Object From a Photo · Perspective Clone