Upvote:2
If you do need a DATV, you need to apply in advance. The whole point of the thing is preventing some people to reach UK territory by making sure they are not able to board their flight without proper documentation.
If you don't have a visa, what is most likely to happen is being denied boarding by the airline in Mexico. You wouldn't even reach Heathrow.