Hi @sunkars
Clarification:
Your article below should clearly specify the scope is for SharePoint On-Prem and not for SharePoint Online.
Article: How to increase the list view threshold for a list ?
SharePoint Online list can have up to 30 million items.
SharePoint Online list view threshold is set to '5000' and cannot be changed.
Refer to SharePoint Online Limits at:
Cheers