Commercially available 3D printer fume and UFP extractor
Following on from Harvey Lim's answer, to give a concrete example of a DIY filter, which uses active carbon, see ABS 3d Printer Nanoparticle and Chemical Exhaust Air Filter:
Enclose your 3d printer and use this exhaust air filter along with a recirculating air filter to eliminate nanoparticles and chemical fumes. 95 to 99.5% of partilces up to 0.1 micron in size are filtered before air is exhausted into your 3d printing room. This is 3 times better than HEPA filtration. Chemical fumes such as phenols, hydrogen bromide, hydrogen cyanide, and styrene are also filtered out. The amount of chemicals filtered out depends on the amount of carbon filtration media you put into the unit and the strength of the fan you install on the unit. If you are using this for business purposes, you'll have to experiment a bit to have it pass inspection. If you are using it for personal purposes, know that the human nose is extremely sensitive. People who have the gene for hydrogen cyanide detection can smell it down to a concentration of 2 to 10 ppm. Suffice it to say, that if you can smell no evil, you are probably not experiencing evil. This has totally cleared my 3d printing room of nasty fumes. I invite you to try it out for yourself as the cost is very low since I've designed it to use surgical masks and aquarium activated carbon filtration media, which is very affordable. You should change the filtration media and surgical mask every month or 50 hours of printing, whichever comes first. I offer no warranty of any kind as this is an experimental device.
This filter is mentioned in tbm0115's answer to What are the best air filtration options for enclosures?