How do you detect a mutated virus?

If you can’t detect it, you can’t treat it, and one mutation at the right place can help a virus evade our diagnostic tests.