Nah. The ILS localizer is IRL and in the sim physically aligned with the runway. Magnetic deviation should not play a role.
One could however check and verify if the localizer is indeed aligned as I presumed based on the LNM display. Which is the more likely bug. However than the C172 should also be affected, assuming you used the default G1000 and not the Nxi
@PZL104 what do you think?