No, that statement is not true. Being gay is not a mental illness. It's just a sexual orientation. The American Psychological Association, along with many other prominent mental health organizations, have stated that being gay is not a mental health disorder and should not be classified as such.
All gay people are mentally ill?  Or am I misunderstanding?