If your device is infected with ransomware, do not pay the ransom demand. Instead, contact the relevant authorities, disconnect the affected device from the internet, and seek the assistance of cybersecurity professionals to recover your data and restore your system.