Human papillomavirus (HPV) screening is crucial for the diagnosis of cervical cancer. In this study, we have combined photoactivated CRISPR-Cas12a with tube-in-tube structure and recombinase polymerase amplification (RPA) to enable simple, rapid and convenient visualization detection of HPV16, facilitated by blue UV light at 302 nm. It serves as a potential tool for on-site diagnostic use, which could be beneficial in terms of portability and speed.