Which cities are you referring to? Some cities have policies that discourage gas and diesel cars, and plans to outlaw them by 2030, but I'm not aware of any that have banned them outright yet.
https://en.wikipedia.org/wiki/Zermatt#Transport
This is a more fun / less clinical read: https://www.motortrend.com/news/swiss-town-went-straight-hor...