If the plastic is heat-resistant, IOW won’t melt, it’ll be fine. Any
pickle pot lid must be metal-free because some pickles can be
contaminated by condensate from the lid.
If your plastic lid does melt or sag, I’ll bet you can find a plate
to place on top of the pot.
Judy in Kansas, where it continues to rain. makes everything grow