my mother in law smokes, how can i keep the cigarette smoke out of my room? Does an air purifier work?

we both live in an apartment. my bf and our 15 mo old baby live in a room and his mom in another. she smokes alot in her room out the window with a fan, but it still lingers. can i buy an air purifier or sumtin? we’ve asked her to consider quiting but it seems like an impossible task.