Hand sanitizer may or may not do anything in regards to preventing transmission of warts, which are caused by a virus. Just because you touched a wart doesn't mean you will GET a wart. Most warts aren't anything to be concerned about. https://www.healthline.com/health/are-warts-contagious#outlook