Is a coronavirus surcharge legal?

Some businesses are charging customers an extra fee to offset their coronavirus-related costs. But is that fair to the consumer?