A phone that new should be able to play anything that is HEVC / H2695. Unless there is, of course, not enough space on the device.
HEVC should be supported on the following Android devices...
Samsung Galaxy S7/S7 Plus or newer.
Galaxy Note 8 or newer.
Google Pixel/Pixel XL or newer.
Huawei P9 or newer.
Xiaomi Mi 5 or newer.
LG G5 or newer.
HTC U10 or newer.
Sony Xperia X or newer.
Moto Z or newer.
OnePlus 3 or newer.
Now that doesn't mean say the carrier/service provider you bought it through hasn't added things that restrict it or restrict the space on it. It also doesn't mean that anything you have added to the device would not restrict it working well.
Additionally, if you are doing any of...