What are the right resolution, aspect mode, and scaling for pixel art games for mobile?

Godot Version

4.3

Question

I am trying to develop a mobile game using pixel art assets and am having trouble setting the project’s resolution, aspect mode, and scaling. I can’t find how to avoid the fractional scaling issues while not having black bars for my game (hardcoding the phone’s resolution doesn’t seem like the correct way of solving this).

Read the following docs.

The documentation has a section on pixel art and a section on mobile, but not for pixel art on mobile. This doesn’t answer my question unfortunately

Then try to combine the two.
Most of the times in game dev there are no premade solutions that will fit perfectly to your work.
You have to make and test most, if not all, things yourself.

But I am not the first one to encounter this problem, so if someone already has a solution for this problem it would be nice if they shared it

You are right that others have likely encountered similar issues, and it’s always helpful when solutions are shared. That said, game development often involves finding solutions that fit the unique needs of your project, and what works for someone else might not work for you. Figuring it out yourself will not only help you solve the problem but also give you a stronger grasp of the principles involved, which will be invaluable for future challenges.

I am trying to do the scaling manually, as can be seen in this thread