The lens or sensor (for interchangeable lens cameras) may be dirty. Check them for dirt and clean them gently How to clean the lens and image sensor of your camera