<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<script src="https://code.jquery.com/jquery-3.6.3.slim.min.js" integrity="sha256-ZwqZIVdD3iXNyGHbSYdsmWP//UBokj2FHAxKuSBKDSo=" crossorigin="anonymous"></script>
	<title>CUSTOMER COUNTER</title>
</head>
<body>
<center><h1>TOTAL: <span class="total"></span></h1></center>
</body>

<script type="text/javascript">
	var intervalId = window.setInterval(function(){
	  // call your function here
	  $('.total').text(localStorage.getItem("grand_total_value"));
	}, 1000);
</script>
</html>