I may be wrong but my understanding is that the difference between transgender community in India and here is, In india they are fighting for recognition as third gender and to have equal rights as male and female gender.
Hindu mythology speaks about third gender, gods manifesting as different genders etc., so it is easier for everyone to accept that there is a third gender and they have to be treated equal to others. Colonialism with strict Victorian moral code did make people change people's behaviour.
In the past, anyone who identified as third gender or Hirja, went and joined a community , they lived together, had certain roles in the society, had their own rituals and special god.
But there is a recognition now ,
that this way of life just leaves them in poverty and open to exploitation. Rightfully, they want to have equal opportunity in education, jobs etc.,
rpl.hds.harvard.edu/religion-context/case-studies/gender/third-gender-and-hijras
www.ncbi.nlm.nih.gov/pmc/articles/PMC7539026/
Indian passports used to have U for transgender but that has been changed to Female now.