Virus variants emerge through a process called genetic mutation. During replication, errors can occur, leading to changes in the virus's RNA or DNA sequence. These mutations can be random or driven by selective pressures, such as the host immune response or antiviral treatments. Once a mutation occurs, a new variant can be formed if the mutated virus continues to replicate and spread.