We present a study of synthetic observations of polarized dust emission at 353 GHz as seen by an observer within a cavity in the interstellar medium (ISM). The cavity is selected from a magnetohydrodynamic simulation of the local ISM with time-dependent chemistry, star formation, and stellar feedback in form of supernova explosions with physical properties comparable to the Local Bubble ones. We find that the local density enhancement together with the coherent magnetic field in the cavity walls makes the selected candidate a translucent polarization filter to the emission coming from beyond its domains. This underlines the importance of studying the Local Bubble in further detail. The magnetic field lines inferred from synthetic dust polar...