Not all virus infections create a protecting immune reaction in this manner. HIV evades the immune system by continually modifying the amino acid sequence on the proteins on the floor of the virion. This is referred to as "escape mutation" as being the viral epitopes escape recognition from the host https://giftstoreonline67789.tribunablog.com/considerations-to-know-about-viral-45976574