You need to consider the resolution and aspect ratio of the device it'll be viewed on. Usually, a common size is around 1080p for a good visual experience.
The size of the page for a digital comic depends on a few factors. One is the target audience's device. Another is the style and complexity of your art. A good starting point could be to look at popular digital comics and see what sizes they use. Also, test different sizes to see what works best for your specific comic.
First, think about the typical screen dimensions of the devices your comic is likely to be seen on. For instance, if it's for mobiles, a portrait orientation with around 720x1280 pixels might work. But if for desktops, a landscape format like 1920x1080 could be better. Also, keep in mind the file size and loading speed to ensure smooth viewing.