Environmental Risk Factors
While genetics is the dominant factor, researchers have also identified several environmental factors associated with modest increases in autism risk. These are correlational associations, they do not prove that these factors cause autism, and most children exposed to these factors are not autistic.
Advanced parental age: Studies have found modest associations between older parental age, both maternal and paternal, and autism risk in offspring. The proposed mechanism is that de novo (new, not inherited) genetic mutations become more common with age in both egg and sperm cells.
Prenatal exposures: Some research suggests that prenatal exposure to certain medications, particularly valproate (used to treat epilepsy and bipolar disorder) , is associated with increased autism risk. Mothers taking valproate during pregnancy should discuss this with their prescribing physician. Prenatal infection, significant maternal inflammation, and preterm birth have also been studied as potential risk factors, with modest associations found in some research.
None of these environmental factors constitute a clear, modifiable "cause" that parents could have avoided. Autism is not caused by parenting practices, diet, screen time, or most of the factors commonly speculated about in online discussions.