My air purifier smells like cigarette smoke. How do I get rid of that smell?

My grandmother gave me her old Holmes air purifier but even with a new HEPA filter it blows out air that smells like cigarette smoke. How do I properly clean it so that it smells like it’s supposed to?