Hi La, the very best way I've found to get rid of musty smells is to buy a bag of charcoal bbq briquettes and place them in small paper bags or use small bowls and place the charcoal around in various spots in the area. The charcoal draws the odors and seems to absorb them. You could also to this with baking soda but it can get messy if the bowls get tipped over accidentally. This charcoal idea can also be used in smelly car interiors to get rid of smoke smell, etc.
Find the source of the smell and deal with that first! ...the smell may leave after that!
Do you mean Musty? Here’s what we did: https://www.frugalfamilytimes.com/2019/04/how-to-get-rid-of-musty-smell.html?m=1
Odo-Ban and Damp Rid would be my 2 items to purchase. Damp Rid will help remove excess moisture, if it's really bad you may need a dehumidifier. Odo-Ban to clean and give it a great eucalyptus scent.
Here's a great post on how to get rid of musty odors from your house.