If it were an immutable genetic setting that was impossible to change, identical twins would both be gay, if one of them was.
In reality it’s about half. Therefore it is NOT immutable.
It has ranged from 20 percent to 50 percent depending on which twin study you are referring to. There’s definitely not 100 percent genetic determinism. There’s definitely some element of nurture involved.