You could try the following solution:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
$( "#datepicker" ).datepicker();
} );
</script>
</head>
<body>
<p>Try entering a date here: <input type="text" id="datepicker"></p>
</body>
</html>
Some HTML elements may behave differently based on the browser or device being used. The code above should work in most cases. If not, consider looking into frameworks that can assist with this issue. It's also worthwhile to explore similar questions and solutions that have been shared by others. Here is another related query you might find helpful: How to trigger the native datepicker on Android using the HTML5 input type 'date'?