Earlier quoted context omitted.
The ocean is a major source of energy which could be used to power the thing. And I'd prioritize ocean cleanup over landfill, first of all. I mean, maybe we use the ocean to construct the fleet, and then when its nice and clean, send the fleet to land ..
You might want to learn something about engineering first. And run some numbers. And read about them, who tried something way less ambitioned: https://en.wikipedia.org/wiki/The_Ocean_Cleanup And still were not that effective.
I'd imagine some sort of floating device which can build copies out of itself with the plastics it finds is not far away, but it probably does involve a fair bit of science before it becomes more than just fiction..