Incorrect UserAgent in iPad OS safari

Hi I am using safari in iPad OS (17.4). when I am checking the user agent, It is showing like Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15

there is no indication that it's from iPad. How would I detect iPad from user agent whereas on IPhone it can easily be detected.

Could you please help me here?

Incorrect UserAgent in iPad OS safari
 
 
Q