Detection of antiviral drug resistance involves genotypic testing and phenotypic testing. Genotypic testing identifies mutations in the viral genome associated with resistance, while phenotypic testing assesses the virus’s ability to grow in the presence of antiviral drugs. These methods help in tailoring appropriate treatment regimens for infected individuals.