Clipboard managers help a lot there.

I just use KDE's default one, Klipper, and I raise the max entry number.

If something bad replaces your copy, you can get the good one back from the history.

There are nice features like QR code generation for your copied text if you want to quickly share something with someone else's phone as well.

That’s a really interesting solution to copy-pasting between devices, which is one of them features Apple has that I rely on a tonne even though it’s horribly unreliable. I wonder if anyone has a similarly clever way to copy from mobile to your computer.

KDE Connect provides some tight integration, including (optional) clipboard sharing, media player controls, features to do presentations, mouse and keyboard.

I use it as a remote control to adjust volume during movies from the phone to the computer playing them for instance.

https://kdeconnect.kde.org/