Mahoraga was defeated due to Sukuna's domain expansion, but so were thousands of civilians that came in the vicinity of his Malevolent Shrine. After Itadori took over, he was mentally affected by ...
The Sukuna vs. Mahoraga fight in the anime has already depicted that the latter can adapt to almost every situation. This adaptability can also manifest as changes to its own physiology.