We investigate the role of mean streamwise pressure gradients in the development of a bluff-body-stabilized premixed flame in the near-wake of the bluff body. To this end, a triangular prism flame holder is situated in three different channel geometries: a nominal case with straight walls, a nozzle with a stronger mean pressure gradient, and a diffuser with a comparatively weaker mean pressure gradient. All geometries are implemented using embedded boundaries, and adaptive mesh refinement is used to locally resolve all relevant thermal (i.e., flame) and fluid-mechanical (i.e., vorticity) scales. A premixed propane flame, modeled using a 66-step skeletal mechanism, interacts with vorticity in the boundary layer of the triangular bluff body in the presence of each mean pressure gradient. Analysis of flame-related enstrophy budget terms reveals key differences in the behavior of baroclinic torque between cases, the specifics of which are tied to larger variations in the mean flow structure, recirculation zone structure, and confinement effects. Our results show that the baroclinic torque changes significantly among the configurations, with the nozzle exhibiting the largest baroclinic torque production. However, these differences are shown to be only a secondary consequence of the background pressure gradient, with the primary consequence being the change in the recirculation zone length resulting from the different channel configurations. These results are relevant for flame stabilization with bluff bodies, where clear understanding of the sensitivities to global mean pressure gradient is important to engineering design.