I would've seen this in the early nineties. I think it was a movie, and only saw the end of it on TV (which probably means it wasn't new at the time).
There was a boy and a girl, and they were trying to escape a city that had been overtaken by androids. At the end, they were talking with what seemed to be the android in charge, won some kind of moral victory in their speech to it, and the androids all shut down and/or the walls keeping them in the city crumbled or exploded and they were able to escape.
The end titles had a sweet but sad song with female vocals, showing a montage of scenes from the movie.
As far as I can work out, it was not any Studio Ghibli production, and is definitely not Laputa. Though I'm pretty sure it was anime it may have been western style animation.
Update: I've just remembered an important detail! It turned out at the end that all these robots/androids were being controlled by a spoiled boy. It's possible I've actually made a dupe of this question, as the 'bubble' sounds familiar too: