By the simple expedient of demanding the lender produce the original mortgage document.
Often, very often, the original paperwork has been filed away in some dusty warehouse in a far-away place that burnt down in 1978. Or was mistakenly sent to some bank in Andorra. Or misfiled. Or eaten by a dog.