How can I configure my Arduino UNO R4 Wi-Fi web server to use HTTPS for secure communication?

I am working on a project where I have set up an Arduino UNO R4 Wi-Fi as a web server, and I am accessing it from a browser app (Blazor WebAssembly Standalone). I encountered a 'mixed content' error because the browser is running on HTTPS and cannot access the Arduino server, which is using HTTP. I would like to secure the communication by switching to HTTPS for accessing the Arduino web server. How can I achieve this?