Subdomain Redirect Problem

Hello guys, I just created a subdomain under the main domain and I added “A” with ipv4 main IP address. When I select DNS only it loads subdomain but removes HTTPS from URL and when I choose Proxied it doesn’t load subdomain but redirect to the main root site. Does anyone know how to fix this issue?