•A pH-responsive polymeric nanocarrier (PEO-PC7A) enables tumor-specific anti-PD-L1 peptide release under acidic conditions. This evidence concerns the gene CD274 and neoplasm.