The only way you can prevent getting an HPV infection and subsequent genital warts symptoms is to avoid direct contact with the virus, which is transmitted by skin-to-skin contact. If you or your sexual partner has genital warts that are visible, you should avoid sexual contact until the condition is treated.