When a weapon with a bipod is deployed on a slope, players view is aligned with the slope. The view returns to horizontal when weapon is undeployed by pressing C or by standing up.
Weapon also gets undeployed when player goes to map by pressing M, the view however stays aligned with the slope. The only solution is to go prone and deploy+undeploy the weapon.