Logical fallacy
Hollow man
The speaker invents a position or attributes it to an unspecified group without evidence and then refutes it. The target argument may never have been advanced by a real opponent.
Examples
Unnamed critics apparently want students never to read any books. We must reject this position, so no curriculum criticism has merit.
I cannot point to anyone saying it, but environmental groups supposedly want all transport abolished. That view is absurd, so their concerns are invalid.