Willy Wonka’s cowl increased the effective port length and lowered the tuning frequency, which is the direction you want to go to compensate for the increased boundary reinforcement from placement near the wall. I incorporate variable port tuning into most of my designs to deal with similar situations.
It is also possible to lower the tuning frequency by decreasing the port’s cross-sectional area throughout its length, perhaps by inserting a smaller-diameter tube into the port. The smaller-diameter tube would be wrapped with tape as needed to get a good friction fit.