That is all easier said than done.
Where interests align, we cooperate. Where they don't align, we do not.
It's not like US and PRC have not cooperated together against India before.
US moved a CBG taskforce to threaten India at same time PRC moved large chunks of its military to border areas...