See here: Is it possible to get the primary display size?
Edit: also there’s a new PR in progress Add `iced::window::get_monitor_size` to get the logical size of the current monitor by rhysd · Pull Request #2754 · iced-rs/iced · GitHub