The value of X is determined only as Elspeth’s last ability resolves. Once that happens, the value of X won’t change later in the turn even if your devotion to white changes.

Artwork
Loading artwork…
Elspeth, Undaunted Hero
The List · #THB-270 · EN
Nonfoil—Foil—
Card rules
+2: Put a +1/+1 counter on each of up to two target creatures.
−2: Search your library and/or graveyard for a card named Sunlit Hoplite and put it onto the battlefield. If you search your library this way, shuffle.
−8: Until end of turn, creatures you control gain flying and get +X/+X, where X is your devotion to white.
Loyalty 5
Mythic · Illustrated by Steven Belledin
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander 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
Elspeth’s last ability affects only creatures you control at the time it resolves. Creatures you begin to control later in the turn won’t get +X/+X or gain flying.
Mana symbols in the text boxes of permanents you control don’t count toward your devotion to any color.
Colorless and generic mana symbols (
, 0, 1, 2, X, and so on) in mana costs of permanents you control don’t count toward your devotion to any color.
Hybrid mana symbols, monocolored hybrid mana symbols, and Phyrexian mana symbols do count toward your devotion to their color(s).
If an activated ability or triggered ability has an effect that depends on your devotion to a color, you count the number of mana symbols of that color among the mana costs of permanents you control as the ability resolves. The permanent with that ability will be counted if it’s still on the battlefield at that time.
If you put an Aura on an opponent’s permanent, you still control the Aura, and mana symbols in its mana cost count towards your devotion.