Exclude background from post-processing (HDRP)

Hi!
Please tell me how I can exclude the background from post-processing in HDRP.
Solutions with two cameras and layers don’t work correctly.