Over time, your immune system learns how to fight the viral infection. This stops the virus getting into your cells. So, to survive, viruses must adapt or evolve. They do this through mutation.
They are simple organisms and so they often make mistakes when they replicate. This creates changes in their genetic code, which changes their surface proteins. These changes are random. However, with enough changes, your antibodies no longer recognise the virus and so can no longer fight it, and it gets into your cells again.
When a change means the virus gets into a cell, it can start replicating a new version of itself. This mutation is called is a new strain or variant. It is a normal process that happens with all viruses.
Click the image below and scroll down the page to watch this video animation on virus replication.
(external link)
(Science Learning Hub, NZ, 2014)