There are different drugs that can do this.
GnRHa puberty blockers are the best and the safest, but they're also the one that has a current UK ban. You can potentially use other drugs; spironolactone and cypoterone prevent the actions of testosterone on the body, while raloxifene can help prevent the actions of estrogen.