The ability to “change” genders is recent and is not addressed in the Bible. However, in the past, people would cross-dress and try to behave like a person of the opposite sex. This practice is condemned.
“A woman shall not wear man's clothing, nor shall a man put on a woman's clothing; for whoever does these things is an abomination to the LORD your God,” Deuteronomy 22:5.
If even acting and dressing as the opposite sex is an abomination, then receiving medical transgender treatment would also be against God’s arrangements.
How might a person live with these feelings?
“Therefore submit to God. Resist the devil and he will flee from you,” James 4:7.
“But you, O man of God, flee these things and pursue righteousness, godliness, faith, love, patience, gentleness,” 1 Timothy 6:11.
“Flee also youthful lusts; but pursue righteousness, faith, love, peace with those who call on the Lord out of a pure heart,” 2 Timothy 2:22.
We all have sinful tendencies. We don’t act on them. As we establish righteous habits, we grow stronger in the Lord. “My brethren, count it all joy when you fall into various trials…If any of you lacks wisdom, let him ask of God, who gives to all liberally and without reproach, and it will be given to him. But let him ask in faith, with no doubting,” James 1:2, 5-6.