How do I find a variance-stabilizing transformation?

How do I find a variance-stabilizing transformation?

I wonder how to solve this classical problem:
Recall that for a binomial proportion $\hat p$ based on a sample of size $n$ we have $$E(\hat p)=p$$ and $$\operatorname{Var}(\hat p) = p(1-p)/n.$$ ...