Not all virus infections generate a protecting immune reaction in this manner. HIV evades the immune process by constantly switching the amino acid sequence with the proteins on the surface in the virion. This is known as "escape mutation" because the viral epitopes escape recognition via the host immune reaction. https://elizabethi429jfc3.ssnblog.com/30852312/5-tips-about-viral-you-can-use-today