While air purifiers are more effective in closed spaces where they can filter the air continuously, they can still operate with windows open. However, an open window may allow more outdoor pollutants to enter, potentially reducing the purifier's effectiveness.