Magento 2: How to get resize image in product details page relative product

Magento 2

How to update image size in single product page (catalog-product-view). Path :


Find related_products_list id and from there update the width and height. It will work only if in list.phtml in path –


Uses the following code to show image where image resolution is not modified and coming directly from the framework –

<?= $block->getImage($_item, $image)->toHtml() ?>