First it is important to establish which wheel rim internal size is suitable for which tire size. The ETRTO table on the right side provides an overview.
Compatibility also depends on the frame size and the space constraints of the seat tube and the brake passage. For instance, it is possible that due it its diameter, a 28mm tire has too little clearance to the seat tube or even touches it.
In addition, it should be noted that the height and width do not change proportionally.
The following overview serves orientation*:
|tire width x rim diameter (mm)|| ||max. width (mm)|| ||Diameter of rim and tire (mm)|
*no liability assumed