Linear gratings polarizers provide remarkable potential to customize the polarization properties and tailor device functionality via dimensional tuning of configurations. Here, we extensively investigate the polarization properties of single- and double-layer linear grating, mainly focusing on self-aligned bilayer linear grating (SABLG), serving as a wire grid polarizer in the mid-wavelength infrared (MWIR) region. Computational analyses revealed the polarization properties of SABLG, highlighting enhancement in TM transmission and reduction in TE transmission compared to single-layer linear gratings (SLG) due to optical cavity effects. As a result, the extinction ratio is enhanced by approximately 2724-fold in wavelength 3–6 μm. Furthermore, integrating the specially designed SABLG with an MWIR InAs/GaSb Type-II Superlattice (T2SL) photodetector yields a significantly enhanced spectral responsivity. The extinction ratio of TM- to TE-spectral responsivity is enhanced by around 8775-fold. The simulation methodology and analytical analysis presented herein provide a versatile route for designing optimized polarimetric structures integrated into infrared imaging devices, offering superior capabilities to resolve linear polarization signatures.