Ambient-pressure photoelectron spectroscopy (APPES) and microscopy are at the frontier of modern chemical analysis at liquid-gas, solid-liquid and solid-gas interfaces, bridging science and engineering of functional materials. Complementing the current state-of-the art of the instruments, we survey in this short review several alternative APPES approaches, developed recently in the scanning photoelectron microscope (SPEM) at the Elettra laboratory. In particular, we report on experimental setups for dynamic near-ambient pressure environment, using pulsed-gas injection in the vicinity of samples or reaction cells with very small apertures, allowing for experiments without introducing additional differential pumping stages. The major part of the review is dedicated to the construction and performance of novel environmental cells using ultrathin electron-transparent but molecularly impermeable membranes to isolate the gas or liquid ambient from the electron detector operating in ultra-high vacuum (UHV). We demonstrate that two dimensional materials, such as graphene and derivatives, are mechanically robust to withstand atmospheric - UHV pressure differences and are sufficiently transparent for the photoelectrons emitted from samples immersed in the liquid or gaseous media. There are many unique opportunities for APPES using X-rays over a wide energy range. We show representative results that illustrate the potential of these ‘ambient-pressure’ approaches. Combined with the ca 100 nm lateral resolution of SPEM, they can overcome the pressure gap challenges and address the evolution of chemical composition and electronic structure at surface and interfaces under realistic operation conditions with unprecedented lateral and spectral resolution.