The increasingly serious environmental pollution worldwide has posed a great threat to the ecosystem and human health, and yet the development of portable in situ monitoring techniques that are sensitive to gaseous and water pollutants remains incomplete. Herein, we report a highly active surface-enhanced Raman spectroscopy (SERS) substrate fabricated by immobilizing gold nanoparticles (AuNPs) onto a polyvinylidene fluoride (PVDF) membrane for continuous in situ SERS detection of pollutants in water and atmosphere. 4-Mercaptobenzoic acid (4-MBA) was adopted as a probe molecule to evaluate the performance of the substrate, and the results indicate that the polymer-based flexible substrate features high sensitivity, uniformity, and repeatability. The fabricated PVDF/SERS substrate was integrated with a portable Raman spectrometer operating under both passing-by and passing-through modes. The integrated system accomplishes quantitative detection and real-time online monitoring of pH in a liquid environment with a response speed of less than 10 s and the rapid SERS response to gas molecules at a low concentration within 30 s. We also demonstrated the highly sensitive detection for mainstream smoke (MS) and sidestream (SS) of cigarette smoke and verified their differences in the main constituent which contributes to the harmful secondhand smoke in public. The developed portable Raman system has excellent application prospects in online liquid and gas environmental detection. [ABSTRACT FROM AUTHOR]