To disable the proximity sensor for WhatsApp on an iOS device, navigate to Settings >> Accessibility >> Turn off the toggle for Switch Control to disable it.