What is the best way to avoid getting HPV in your mouth from oral?

Barrier. If you are giving oral sex to a girl use a vaginal dam (sheet of latex) over her labia / vagina. If you are giving oral sex to a guy use a condom on his penis.