I'm looking for an animated film I remember watching when I saw a kid, so would have been available by mid-90s on VHS
There are a few details I remember, the main one being that one of the early scenes in the movie several mecha are ambushed by someone firing a missile into a cliff, causing the cliff to collapse and bury the mechas. Although I believe the mecha survive this and kill the ambusher.
Later on, I remember some characters going into space / to a space station, and then a battle around a city on earth again.