On iPhone Photos there is a less-than-obvious way to accomplish that.
On your iPhone, open Photos.
Click on Albums, second from the right at the bottom of the screen.
In the Albums view, you'll see My Albums in thumbnail views that you can scroll through.
Click the + at the upper left to create a new album
Select New Album from the pop-up
In the blank that pops up, name the new album, and click Save.
At the top of the next screen you'll see a view of thumbnails and
Cancel Photos Albums Add
and a gray pop-up with a searchlight and the words Photos, People, Places...
In the box, type iPhone
If your Library contains photos from other iPhones, you'll see a list of all iPhone models used to create the images, and the number of matching images, saved in your iPhone Photos library.
Select the specific iPhone model if necessary

If the images taken by that device also have other sub-criteria in common, like season, person, or location, a list of those criteria will now be displayed, and you can quickly select those images matching that sub-criteria by selecting one of the criteria listed.
You need to tap on every image you want to add to your new device-specific album, so that a blue check-mark is displayed on each image.
Videos will have a number displayed over the image like 0:14 for a 14-second video, so if you don't want them, don't select (checkmark) them at this step.
You might be able to click and drag your finger down over the images to select them quickly.
Sometimes clicking and dragging my finger down the screen works, sometimes not.
If not, I have to tap on every image I want to select.
When every image you want to be in your new Album is selected, click the blue Add in the upper right corner of the screen.
I'm using iOS 17.3 on iPhone SE 2nd generation
======
On macOS Photos, you have far more control over specifying the image criteria, including things like aperture, shutter speed, and focal length.
First, create a Photos Smart Album that specifies your iPhone as the Camera Model.
Open Photos
Select File, Create New Smart Album, and give it a unique name
Then select the criteria for Match the following condition:
First, select - Camera Model from the dropdown list

Second, select - Includes from the dropdown list

Third - If you've added images to your Photos library from more than one camera, scroll through the dropdown list and select the specific camera or device. If your library contains photos from only one device, that will be the only choice displayed.

After you've selected the device, you'll see (numerals) items matched to your selected criteria

After you click OK, the thumbnails of all the images matching your criteria will be displayed.
These examples are from macOS Monterey 12.7.3 and Photos Version 7.0 (460.0.120)