<!DOCTYPE html>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
html {
background-color: green;
}
#fixed {
width: 100px;
height: 100px;
background-color: red;
position: fixed;
bottom: 0px;
right: 0px;
</style>
<div id="fixed"></div>