Thanks for the response.
I ended up using AWS ec2 but I had the same problem on both. I did follow the guidance here to add Google Analytics, where I placed GA code after the header on the index file on my local machine.
I don’t think that is the source of the problem because I installed streamlit on Ubuntu remote server using miniconda and did not edit the index file on that server. When I run it locally there are no problems.
Do you think that could be causing the problem?