This is also part of shoe care: if you do not need your shoes for a long time, they must be stored correctly. This means: ideally in a shoe bag or a cardboard box, but under no circumstances in an airtight plastic bag.
You can find out more about shoe care in our shoe care guide.