There are a number of materials that cannot be taken to the microwave. The most obvious are aluminium and metal. But because of the destructive effects they have when heated in this way, you won't find lids made of them.
The overwhelming majority of lids available on the market are made of plastic. Only the category "plastic" is very diverse. Some types melt, others release substances that can cause serious health problems.
That's why you need plastics that are ideal for microwaves. Whether you use it as a lid or as a food container, always check this information. If it is not written that it can be taken to the appliance, do not take it.
Not all glass can be used in the microwave either. Only refractory glass can be taken to high temperatures. More common types can also crack and even release shards.
You should not take chances with uncertified materials. Even if a product is sold as a "microwave lid", be sure that it can be placed on this appliance. Your health will thank you.