Not all virus infections develop a protecting immune reaction in this way. HIV evades the immune program by frequently modifying the amino acid sequence in the proteins on the floor on the virion. This is known as "escape mutation" since the viral epitopes escape recognition through the host immune reaction. https://codyldqcn.theblogfairy.com/30928456/considerations-to-know-about-viral