How is a polyglot payload different from a normal XSS payload?
A standard XSS payload targets one known context. A polyglot is engineered to remain valid in several contexts simultaneously, so the attacker does not need to know exactly how the application will parse the input; the same string works whether it lands in HTML, an attribute, or JavaScript.