There has been clipboard malware since long time ago. For example, if you want to send Bitcoin to someone, the Bitcoin address can be changed to a hacker's address immediately your paste in the address. That is why you need to check and recheck the address you are sending bitcoin to before pressing on the send button. The best in this case is to uninstall you device OS and install back the OS.
(virus is just one of the makeware, there are others like Trojan, Rootkit and Botnents. Some malware are combination of two or more malware to help achieve compromisimg the intended devices).