User @Acamicamacaraca reported on Discord of Serbian Wikipedia that user pages of users without created user page have this:
I also reproduced this on enwiki:
I checked code and found that related things are in MobileFrontend, I didn't find it in mediawiki/core.