Most plastics are not affected by most acids.
Plastics are poly-organic compounds which aren’t reactive to acid. To react with acid, a substance must be either a base or a reductant strong enough to be oxidized by hydronium ion. Most plastic are neither of them.
Plastics are not corroded even if they come in contact with strong chemicals. This is because of their non-reactive nature with most materials. For example, the cleansing chemicals that we use at home are stored in plastic bottles, instead of metal containers