I've done it one of two ways depending on how fragile I perceive the coral to be. Before you dip/spray, of course remove what algae you can, the less algae the better penetration, the less waste is going back into your tank.
For GSP and zoas, corals that seem to typically dip really well, I use straight 3% peroxide and spray it on with the spray bottle that I refill from the larger standard 3% bottle I bought from amazon, and leave it for about 4-5 mins. Give it a good rinse in a separate cup of tank water before you put it back into your tank.
More fragile corals get a spray and then I add a little tank water to sort of dilute it a little to sit in for the same amount of time. I don't have exacts on this, but so many people have used peroxide for algae, you could probably find something more precise.
The algae will turn sort of pale/translucent and melt away over the next few days. If you didn't manage to get it all in the first dip/spray, dip that sucker again, but I would give the corals a few days to settle again so they're not constantly stressed out, or see if your CUC will handle any that may be left. If it's just GHA then one good dip/spray should kill it all until and if it regrows from scratch.