
Hello Nishanth,
Thank you for posting in Microsoft Community.
You can first switch to "compact list", then "save view as" > give a name and make it a public view. Refresh the page, you will see it has been applied.
Then, for this specific document library, go to library settings, scroll down to the bottom to change this new view to default view.
It seems we need to manually change this per library, there is not yet a direct way found to change at one time.
Best regards,
Trish - MSFT | Microsoft Community Support Specialist