The first part of Undercity Uprising’s effect affects only creatures you control at the time it resolves. Creatures you begin to control later in the turn won’t gain deathtouch.

Artwork
Loading artwork…
Undercity Uprising
Guilds of Ravnica · #210 · EN
Nonfoil—Foil—
Card rules
Creatures you control gain deathtouch until end of turn. Then target creature you control fights target creature you don't control. (Each deals damage equal to its power to the other.)
"Now it's your turn to hide." —Vraska
Common · Illustrated by Magali Villeneuve
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If both target creatures are illegal targets by the time Undercity Uprising tries to resolve, the spell doesn’t resolve. No creatures deal damage or gain deathtouch.
Remember that a source with deathtouch has to deal damage, but not necessarily combat damage, to destroy another creature. As long as the fighting creature you control has power greater than 0 (and the damage isn’t prevented), the fighting creature you don’t control will be destroyed.
If one of the two target creatures is an illegal target by the time Undercity Uprising tries to resolve, no creature deals or is dealt damage. Creatures you control still gain deathtouch.