Where
- Look for the Mirage Spot north of Route 125, the route toward Shoal Cave.
- Porygon and Purugly appear in the grass.
- Head east to a ladder, climb it, then go up and left to the TM.
Mirage Spots are random and change daily, so you need to wait for the right one. You reach them by Soaring.
Changing your 3DS clock to reroll the spot may not be reliable.