To prevent spider mites, you need to synchronize everything starting from fertilizers to watering strategy. Right fertilizers for the right plants and just the adequate supply of water to roots can help you a lot in this. Also, sunlight plays an important role in preventing mites.