When Mesprit flees, it does not stay in one fixed location. Use the appropriate Pokétch app to track its movement. Mesprit changes areas whenever you enter a new route or city, so flying directly to it may cause it to flee again. Learn its pattern and approach carefully.