This is common and good advice. Ritalin at one point was prescribed for ADD and ADHD, Kurt Cobain ended up dying by suicide as a result of complications from his use of the drug.
Spectrum disorders have been used for the past 20+ years as catchall diagnoses. There have been many stories of people who were diagnosed with these disorders, when in fact they were exposed to toxic products without their knowledge.
Heavy metal poisoning from chronic low-level exposure for example mimics nearly all the symptoms and won't show up in blood tests without a chelator. The doctor generally has to have an idea of the substance they are looking for to justify ordering the specific tests. Low-level chronic exposure rarely presents
Exposure to many toxins can have these symptoms. Some studies suggest high doses of PFAS, microplastics, or even above safe-limits for flouride, and other industrial contaminants can cause these similar-looking issues.
They are actually quite different causes, and brain damage in the more extreme cases can occur if left untreated, especially in youth which are more susceptible to certain toxins.