Plane Tilting with Autopilot (HDG) Enabled in MFS2024

I’m experiencing an issue in Microsoft Flight Simulator 2024 when using the autopilot (AP) on planes like the Cessna 172. When I activate the AP with HDG (Heading) mode enabled, the aircraft flies tilted to one side instead of staying level. Additionally, it doesn’t maintain the configured altitude consistently, oscillating up and down, and sometimes it stalls and crashes to the ground.
Has anyone else experienced this issue or knows how to fix it?

Thanks for any help.


msfs-2024

Could you post an image of the planes PFD when you are having the issue?

Rolling to the left?

Looking at the image OP posted, they might be experiencing a crosswind. The camera points straight to the GPS waypoint while the nose is pointed to the right, countering the crosswind.