Compared to cars and buses, the percentage of trains and tubes remained stable.
From a grammatical standpoint, that sentence is fine, but I'm not sure what it's supposed to express. Perhaps this:
Unlike the percentage of cars and buses, the percentage of trains and tubes remained stable.
I should add that I had to look up "tube"; apparently, it means "underground train" and is acceptable only in informal English.
Student or Learner