Luckily for Microsoft, there's many developpers that don't work on mobile. There's millions of developpers working for banks, governement, or other large organization, and many of them are choosing Microsoft technologies for their stacks. Mobile app had its gold rush in the early 2010s, but now Microsoft is investing into capturing developpers to use their cloud platform, and they are obviously doing very well in that area.