This person must focus his or her desires to the opposite gender only , fight his urges for same gender. It is a test of Allah swt , Allah swt can change him or her to a normal person because He swt creates him or her.
One of the best effecting method is that when ever the feeling for same gender attraction exists then he or she must recite sura naas Abundantly because the wrong feelings are always associated with the whispers of the Shaytan