Detection of antiviral resistance typically involves laboratory testing. Genotypic assays can identify specific mutations associated with resistance, while phenotypic assays measure the virus's ability to grow in the presence of antiviral drugs. For HIV, resistance testing is a standard part of care.