Text doesn't say that.
Not explicitly, but 2 Peter 2:4 references the sins of particular angels, followed by references to the Flood and the destruction of Sodom and Gomorrah.
Jude 6-7 also references this, discussing the angels that left their proper domain, then going right to discussing Sodom and Gomorrah, where the inhabitants gave themselves over to sexual immorality and going after strange flesh.
It’s very clear what is being discussed.