First it is important to establish which wheel rim internal size is suitable for which tyre 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 tyre 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*:
|tyre width x rim diameter (mm)|| ||max. width (mm)|| ||Diameter of rim and tyre (mm)|
*no liability assumed