You'll get a new node Latent Size Selector, you can pick the x and y sizes from a list.
cd custom_nodes
git clone https://github.com/1038lab/ComfyUI_LatentSizeSelector .
You'll get a new node Latent Size Selector, you can pick the x and y sizes from a list.