Gender dysphoria is a recognized mental condition, yes, but I suspect you're confused on what gender dysphoria is. Gender dysphoria is not having a non-standard gender identity - which, in and of itself, is not a recognized mental illness. It's the distress resulting from having a gender identity that does not align with one's biological sex. Depending on the individual, appropriate treatments include psychotherapy, hormone treatments and gender reassignment surgery.