All this just basic info.
Any government official can ask you for password of your phone. you can give them or you can denied them.
currently no one in india can decrypt or unlock locked iphone 11 or newer android 12 or newer without damage data.
Also you must choice secure phone lock password and don't use face lock or fingerprint lock they can force you to unlock it.
On whatsapp do not backup on there server off chat backup if you are using.
Unless you been monitored with spyware in your phone there is nothing to fear.