That's sort of the whole premise of The Wire, especially the 1st, 4th, and 5th seasons. The mass surveillance side is mostly shown through the cops' perspective, and the show is now 20+ years old, but it shows an extremely realistic portrayal of how cops use surveillance to build cases against criminal organizations and career criminals.
It's set in the early days of mass adoption of cell phones, so there are some pretty dated moments. The entire 1st season centers around monitoring a drug enterprise that uses pay phones to communicate. There's a moment in a later season where the cops have to have text messaging and sending pictures over cell phones explained. They go into a lot of detail about what a burner phone is. It's kind of funny in retrospect, but it was all very timely when the show originally aired.
The title "The Wire" is a reference to wire taps, ie the police getting warrants to allow them to listen to phone calls.