Flashback - Remember the battle over the citizenship question in the 2020 Census? Dems fought and kept it out of the census. Counting noncitizens (think - all the "sanctuary" cities and states) INCREASES the number of electoral votes a blue state gets because electoral votes are based on the combined number of U.S. Senators and U.S. Representatives that a state has - and the number of U.S Representatives a state has is based on the U.S. Census.
Distribution of Electoral Votes - Allocation among the States
Electoral votes are allocated among the States based on the Census. Every State is allocated a number of votes equal to the number of Senators and Representatives in its U.S. Congressional delegation—two votes for its Senators in the U.S. Senate plus a number of votes equal to the number of its Congressional districts.
https://www.archives.gov/electoral-college/allocation
Congressional districts for the 118th through the 122nd Congressional Sessions are based on the results of the 2020 Census. Boundaries are effective until January of odd-numbered years, when new congressional sessions begin. All states established new congressional districts in 2022, with the exception of the six single-member states (Alaska, Delaware, North Dakota, South Dakota, Vermont, and Wyoming).
https://www.test.census.gov/programs-surveys/geography/guidance/geo-areas/congressional-dist.html
The 2020 census, again, was not based on U.S. Citizens alone because Trump and company's effort to get the Citizenship question added was defeated by the Democrats.