<?php
/**
 * @var $block \Magento\Sales\Block\Order\Totals
 */
?>
<?php foreach ($block->getTotals() as $_code => $_total) : ?>
    <?php if ($_code !== 'grand_total') continue; ?>
    <tr class="<?= $block->escapeHtmlAttr($_code) ?>">
        <th <?= /* @noEscape */ $block->getLabelProperties() ?> scope="row">
            <strong><?= $block->escapeHtml($_total->getLabel()) ?></strong>
        </th>
        <td <?= /* @noEscape */ $block->getValueProperties() ?> data-th="<?= $block->escapeHtmlAttr($_total->getLabel()) ?>">
            <strong><?= /* @noEscape */ $block->formatValue($_total) ?></strong>
        </td>
    </tr>
<?php endforeach; ?>
